#include "mainwidget.h"
#include <QVBoxLayout>
#include "scene.h"
#include "view.h"
#include "node.h"
#include <QGraphicsView>
MainWidget::MainWidget(QWidget *parent)
    : QWidget(parent)
{
    this->setGeometry(200,200,800,600);
    auto layout = new QVBoxLayout(this);
    layout->setContentsMargins(0, 0, 0, 0);
    layout->setSpacing(0);
    auto scene = new Scene();
    auto view = new View();
    view->setStyleSheet("border:none");
    view->setScene(scene);
    layout->addWidget(view);
    auto item = new Node(100, 100);
    scene->addItem(item);
}

MainWidget::~MainWidget()
{
}

